local skel = fk.CreateSkill {
  name = "emo__longbao",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["emo__longbao"] = "龙的残暴",
  [":emo__longbao"] = "锁定技，游戏开始时或你击杀角色后，你摸X张牌(X为此技能发动次数)。",
}

local on_use = function (self, event, target, player, data)
  player:drawCards(player:usedSkillTimes(skel.name, Player.HistoryGame), skel.name)
end

skel:addEffect(fk.GameStart, {
  anim_type = "drawcard",
  can_trigger = function (self, event, target, player, data)
    return player:hasSkill(skel.name)
  end,
  on_use = on_use,
})

skel:addEffect(fk.Deathed, {
  anim_type = "drawcard",
  can_trigger = function (self, event, target, player, data)
    return player:hasSkill(skel.name) and data.killer == player
  end,
  on_use = on_use,
})

return skel
